/*
 *    This program is free software; you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation; either version 3 of the License
 *    This program is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU General Public License for more details.
 *    You should have received a copy of the GNU General Public License
 *    along with this program; if not, write to the Free Software Foundation,
 *    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
 */

/*
 * keyboardDialog.java
 *
 * Created on 2010-01-07, 21:40:48
 */

package JET.Frames.keyboardframe;

import JET.Actions.Action;
import JET.VirtualKeyboard.VKey;
import JET.Centers.ControlCenter;
import JET.Frames.DataModels.DataModelsFactory;
import JET.Frames.DataModels.KeyActionsListModel;
import JET.SA.SA_Dialogs;
import JET.Scene;
import JET.StaticActions;
import java.awt.event.KeyEvent;
import java.util.ArrayList;

/**
 *
 * @author 057Ry
 */
public class KeyboardDialog extends javax.swing.JDialog {

    static final ControlCenter CC = ControlCenter.getInstance();
    int actualKeyCode;
    private Scene scene;

    /** Creates new form keyboardDialog */
    public KeyboardDialog(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
        chooseKey(KeyEvent.VK_Q);
    }

    public void setScene(String sceneName) {
        scene = CC.getScene(sceneName);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        tyldaButton = new javax.swing.JButton();
        dig1Button = new javax.swing.JButton();
        dig2Button = new javax.swing.JButton();
        dig3Button = new javax.swing.JButton();
        dig4Button = new javax.swing.JButton();
        dig5Button = new javax.swing.JButton();
        dig6Button = new javax.swing.JButton();
        dig7Button = new javax.swing.JButton();
        dig8Button = new javax.swing.JButton();
        dig9Button = new javax.swing.JButton();
        dig0Button = new javax.swing.JButton();
        minusButton = new javax.swing.JButton();
        plusButton = new javax.swing.JButton();
        backspaceButton = new javax.swing.JButton();
        tabButton = new javax.swing.JButton();
        qButton = new javax.swing.JButton();
        wButton = new javax.swing.JButton();
        eButton = new javax.swing.JButton();
        rButton = new javax.swing.JButton();
        tButton = new javax.swing.JButton();
        yButton = new javax.swing.JButton();
        uButton = new javax.swing.JButton();
        iButton = new javax.swing.JButton();
        oButton = new javax.swing.JButton();
        pButton = new javax.swing.JButton();
        squareBracketLeftButton = new javax.swing.JButton();
        squareBracketRightButton40 = new javax.swing.JButton();
        backslashButton = new javax.swing.JButton();
        jButton42 = new javax.swing.JButton();
        jButton43 = new javax.swing.JButton();
        jButton44 = new javax.swing.JButton();
        jButton45 = new javax.swing.JButton();
        jButton46 = new javax.swing.JButton();
        jButton47 = new javax.swing.JButton();
        jButton48 = new javax.swing.JButton();
        jButton49 = new javax.swing.JButton();
        jButton50 = new javax.swing.JButton();
        jButton51 = new javax.swing.JButton();
        jButton52 = new javax.swing.JButton();
        jButton53 = new javax.swing.JButton();
        jButton54 = new javax.swing.JButton();
        jButton55 = new javax.swing.JButton();
        jButton56 = new javax.swing.JButton();
        jButton57 = new javax.swing.JButton();
        jButton58 = new javax.swing.JButton();
        jButton59 = new javax.swing.JButton();
        jButton60 = new javax.swing.JButton();
        jButton61 = new javax.swing.JButton();
        jButton62 = new javax.swing.JButton();
        jButton63 = new javax.swing.JButton();
        jButton64 = new javax.swing.JButton();
        jButton65 = new javax.swing.JButton();
        jButton66 = new javax.swing.JButton();
        jButton67 = new javax.swing.JButton();
        jButton68 = new javax.swing.JButton();
        jButton69 = new javax.swing.JButton();
        jButton70 = new javax.swing.JButton();
        jButton71 = new javax.swing.JButton();
        jButton72 = new javax.swing.JButton();
        jButton73 = new javax.swing.JButton();
        jButton74 = new javax.swing.JButton();
        jPanel3 = new javax.swing.JPanel();
        f1Button = new javax.swing.JButton();
        f2Button = new javax.swing.JButton();
        f3Button = new javax.swing.JButton();
        f4Button = new javax.swing.JButton();
        f5Button = new javax.swing.JButton();
        f6Button = new javax.swing.JButton();
        f7Button = new javax.swing.JButton();
        f8Button = new javax.swing.JButton();
        f9Button = new javax.swing.JButton();
        f10Button = new javax.swing.JButton();
        f11Button = new javax.swing.JButton();
        f12Button = new javax.swing.JButton();
        escButton = new javax.swing.JButton();
        jPanel4 = new javax.swing.JPanel();
        printScreenButton = new javax.swing.JButton();
        scrollLockButton = new javax.swing.JButton();
        pauseButton = new javax.swing.JButton();
        jButton78 = new javax.swing.JButton();
        jButton79 = new javax.swing.JButton();
        jButton80 = new javax.swing.JButton();
        jButton81 = new javax.swing.JButton();
        jButton82 = new javax.swing.JButton();
        jButton83 = new javax.swing.JButton();
        jPanel5 = new javax.swing.JPanel();
        leftButton = new javax.swing.JButton();
        downButton = new javax.swing.JButton();
        rightButton = new javax.swing.JButton();
        upButton = new javax.swing.JButton();
        jPanel6 = new javax.swing.JPanel();
        jButton88 = new javax.swing.JButton();
        jButton89 = new javax.swing.JButton();
        jButton90 = new javax.swing.JButton();
        jButton92 = new javax.swing.JButton();
        jButton93 = new javax.swing.JButton();
        jButton94 = new javax.swing.JButton();
        jButton96 = new javax.swing.JButton();
        jButton97 = new javax.swing.JButton();
        jButton98 = new javax.swing.JButton();
        jButton100 = new javax.swing.JButton();
        jButton101 = new javax.swing.JButton();
        jButton102 = new javax.swing.JButton();
        jButton104 = new javax.swing.JButton();
        jButton105 = new javax.swing.JButton();
        jButton103 = new javax.swing.JButton();
        jButton95 = new javax.swing.JButton();
        jButton99 = new javax.swing.JButton();
        jButton106 = new javax.swing.JButton();
        jPanel7 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        keyActionsList = new javax.swing.JList();
        bindActionButton = new javax.swing.JButton();
        unbindActionButton = new javax.swing.JButton();
        jPanel8 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        actionsList = new javax.swing.JList();
        newActionButton = new javax.swing.JButton();
        jPanel9 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        keyNameTextField = new javax.swing.JTextField();
        eventTypeComboBox = new javax.swing.JComboBox();
        jLabel2 = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosed(java.awt.event.WindowEvent evt) {
                formWindowClosed(evt);
            }
        });

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Virtual Keyboard"));

        jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        tyldaButton.setFont(new java.awt.Font("Tahoma", 0, 10));
        tyldaButton.setText("~");
        tyldaButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        tyldaButton.setPreferredSize(new java.awt.Dimension(64, 64));
        tyldaButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tyldaButtonActionPerformed(evt);
            }
        });

        dig1Button.setFont(new java.awt.Font("Tahoma", 0, 10));
        dig1Button.setText("1");
        dig1Button.setMargin(new java.awt.Insets(0, 0, 0, 0));
        dig1Button.setPreferredSize(new java.awt.Dimension(64, 64));
        dig1Button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dig1ButtonActionPerformed(evt);
            }
        });

        dig2Button.setFont(new java.awt.Font("Tahoma", 0, 10));
        dig2Button.setText("2");
        dig2Button.setMargin(new java.awt.Insets(0, 0, 0, 0));
        dig2Button.setPreferredSize(new java.awt.Dimension(64, 64));
        dig2Button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dig2ButtonActionPerformed(evt);
            }
        });

        dig3Button.setFont(new java.awt.Font("Tahoma", 0, 10));
        dig3Button.setText("3");
        dig3Button.setMargin(new java.awt.Insets(0, 0, 0, 0));
        dig3Button.setPreferredSize(new java.awt.Dimension(64, 64));
        dig3Button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dig3ButtonActionPerformed(evt);
            }
        });

        dig4Button.setFont(new java.awt.Font("Tahoma", 0, 10));
        dig4Button.setText("4");
        dig4Button.setMargin(new java.awt.Insets(0, 0, 0, 0));
        dig4Button.setPreferredSize(new java.awt.Dimension(64, 64));
        dig4Button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dig4ButtonActionPerformed(evt);
            }
        });

        dig5Button.setFont(new java.awt.Font("Tahoma", 0, 10));
        dig5Button.setText("5");
        dig5Button.setMargin(new java.awt.Insets(0, 0, 0, 0));
        dig5Button.setPreferredSize(new java.awt.Dimension(64, 64));
        dig5Button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dig5ButtonActionPerformed(evt);
            }
        });

        dig6Button.setFont(new java.awt.Font("Tahoma", 0, 10));
        dig6Button.setText("6");
        dig6Button.setMargin(new java.awt.Insets(0, 0, 0, 0));
        dig6Button.setPreferredSize(new java.awt.Dimension(64, 64));
        dig6Button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dig6ButtonActionPerformed(evt);
            }
        });

        dig7Button.setFont(new java.awt.Font("Tahoma", 0, 10));
        dig7Button.setText("7");
        dig7Button.setMargin(new java.awt.Insets(0, 0, 0, 0));
        dig7Button.setPreferredSize(new java.awt.Dimension(64, 64));
        dig7Button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dig7ButtonActionPerformed(evt);
            }
        });

        dig8Button.setFont(new java.awt.Font("Tahoma", 0, 10));
        dig8Button.setText("8");
        dig8Button.setMargin(new java.awt.Insets(0, 0, 0, 0));
        dig8Button.setPreferredSize(new java.awt.Dimension(64, 64));
        dig8Button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dig8ButtonActionPerformed(evt);
            }
        });

        dig9Button.setFont(new java.awt.Font("Tahoma", 0, 10));
        dig9Button.setText("9");
        dig9Button.setMargin(new java.awt.Insets(0, 0, 0, 0));
        dig9Button.setPreferredSize(new java.awt.Dimension(64, 64));
        dig9Button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dig9ButtonActionPerformed(evt);
            }
        });

        dig0Button.setFont(new java.awt.Font("Tahoma", 0, 10));
        dig0Button.setText("0");
        dig0Button.setMargin(new java.awt.Insets(0, 0, 0, 0));
        dig0Button.setPreferredSize(new java.awt.Dimension(64, 64));
        dig0Button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dig0ButtonActionPerformed(evt);
            }
        });

        minusButton.setFont(new java.awt.Font("Tahoma", 0, 10));
        minusButton.setText("-");
        minusButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        minusButton.setPreferredSize(new java.awt.Dimension(64, 64));
        minusButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                minusButtonActionPerformed(evt);
            }
        });

        plusButton.setFont(new java.awt.Font("Tahoma", 0, 10));
        plusButton.setText("+");
        plusButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        plusButton.setPreferredSize(new java.awt.Dimension(64, 64));
        plusButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                plusButtonActionPerformed(evt);
            }
        });

        backspaceButton.setFont(new java.awt.Font("Tahoma", 0, 10));
        backspaceButton.setText("Backspace");
        backspaceButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        backspaceButton.setPreferredSize(new java.awt.Dimension(64, 64));
        backspaceButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                backspaceButtonActionPerformed(evt);
            }
        });

        tabButton.setFont(new java.awt.Font("Tahoma", 0, 10));
        tabButton.setText("TAB");
        tabButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        tabButton.setPreferredSize(new java.awt.Dimension(64, 64));

        qButton.setFont(new java.awt.Font("Tahoma", 0, 10));
        qButton.setText("Q");
        qButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        qButton.setPreferredSize(new java.awt.Dimension(64, 64));
        qButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                qButtonActionPerformed(evt);
            }
        });

        wButton.setFont(new java.awt.Font("Tahoma", 0, 10));
        wButton.setText("W");
        wButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        wButton.setPreferredSize(new java.awt.Dimension(64, 64));
        wButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                wButtonActionPerformed(evt);
            }
        });

        eButton.setFont(new java.awt.Font("Tahoma", 0, 10));
        eButton.setText("E");
        eButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        eButton.setPreferredSize(new java.awt.Dimension(64, 64));
        eButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                eButtonActionPerformed(evt);
            }
        });

        rButton.setFont(new java.awt.Font("Tahoma", 0, 10));
        rButton.setText("R");
        rButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        rButton.setPreferredSize(new java.awt.Dimension(64, 64));
        rButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rButtonActionPerformed(evt);
            }
        });

        tButton.setFont(new java.awt.Font("Tahoma", 0, 10));
        tButton.setText("T");
        tButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        tButton.setPreferredSize(new java.awt.Dimension(64, 64));
        tButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tButtonActionPerformed(evt);
            }
        });

        yButton.setFont(new java.awt.Font("Tahoma", 0, 10));
        yButton.setText("Y");
        yButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        yButton.setPreferredSize(new java.awt.Dimension(64, 64));
        yButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                yButtonActionPerformed(evt);
            }
        });

        uButton.setFont(new java.awt.Font("Tahoma", 0, 10));
        uButton.setText("U");
        uButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        uButton.setPreferredSize(new java.awt.Dimension(64, 64));
        uButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                uButtonActionPerformed(evt);
            }
        });

        iButton.setFont(new java.awt.Font("Tahoma", 0, 10));
        iButton.setText("I");
        iButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        iButton.setPreferredSize(new java.awt.Dimension(64, 64));
        iButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                iButtonActionPerformed(evt);
            }
        });

        oButton.setFont(new java.awt.Font("Tahoma", 0, 10));
        oButton.setText("O");
        oButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        oButton.setPreferredSize(new java.awt.Dimension(64, 64));
        oButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                oButtonActionPerformed(evt);
            }
        });

        pButton.setFont(new java.awt.Font("Tahoma", 0, 10));
        pButton.setText("P");
        pButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        pButton.setPreferredSize(new java.awt.Dimension(64, 64));
        pButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pButtonActionPerformed(evt);
            }
        });

        squareBracketLeftButton.setFont(new java.awt.Font("Tahoma", 0, 10));
        squareBracketLeftButton.setText("[");
        squareBracketLeftButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        squareBracketLeftButton.setPreferredSize(new java.awt.Dimension(64, 64));
        squareBracketLeftButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                squareBracketLeftButtonActionPerformed(evt);
            }
        });

        squareBracketRightButton40.setFont(new java.awt.Font("Tahoma", 0, 10));
        squareBracketRightButton40.setText("]");
        squareBracketRightButton40.setMargin(new java.awt.Insets(0, 0, 0, 0));
        squareBracketRightButton40.setPreferredSize(new java.awt.Dimension(64, 64));
        squareBracketRightButton40.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                squareBracketRightButton40ActionPerformed(evt);
            }
        });

        backslashButton.setFont(new java.awt.Font("Tahoma", 0, 10));
        backslashButton.setText("\\");
            backslashButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
            backslashButton.setPreferredSize(new java.awt.Dimension(64, 64));
            backslashButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    backslashButtonActionPerformed(evt);
                }
            });

            jButton42.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton42.setText("Caps Lock");
            jButton42.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton42.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton42.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton42ActionPerformed(evt);
                }
            });

            jButton43.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton43.setText("A");
            jButton43.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton43.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton43.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton43ActionPerformed(evt);
                }
            });

            jButton44.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton44.setText("S");
            jButton44.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton44.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton44.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton44ActionPerformed(evt);
                }
            });

            jButton45.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton45.setText("D");
            jButton45.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton45.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton45.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton45ActionPerformed(evt);
                }
            });

            jButton46.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton46.setText("F");
            jButton46.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton46.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton46.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton46ActionPerformed(evt);
                }
            });

            jButton47.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton47.setText("G");
            jButton47.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton47.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton47.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton47ActionPerformed(evt);
                }
            });

            jButton48.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton48.setText("H");
            jButton48.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton48.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton48.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton48ActionPerformed(evt);
                }
            });

            jButton49.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton49.setText("J");
            jButton49.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton49.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton49.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton49ActionPerformed(evt);
                }
            });

            jButton50.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton50.setText("K");
            jButton50.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton50.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton50.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton50ActionPerformed(evt);
                }
            });

            jButton51.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton51.setText("L");
            jButton51.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton51.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton51.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton51ActionPerformed(evt);
                }
            });

            jButton52.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton52.setText(";");
            jButton52.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton52.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton52.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton52ActionPerformed(evt);
                }
            });

            jButton53.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton53.setText("'");
            jButton53.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton53.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton53.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton53ActionPerformed(evt);
                }
            });

            jButton54.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton54.setText("ENTER");
            jButton54.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton54.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton54.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton54ActionPerformed(evt);
                }
            });

            jButton55.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton55.setText("SHIFT");
            jButton55.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton55.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton55.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton55ActionPerformed(evt);
                }
            });

            jButton56.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton56.setText("Z");
            jButton56.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton56.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton56.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton56ActionPerformed(evt);
                }
            });

            jButton57.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton57.setText("X");
            jButton57.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton57.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton57.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton57ActionPerformed(evt);
                }
            });

            jButton58.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton58.setText("C");
            jButton58.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton58.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton58.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton58ActionPerformed(evt);
                }
            });

            jButton59.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton59.setText("V");
            jButton59.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton59.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton59.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton59ActionPerformed(evt);
                }
            });

            jButton60.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton60.setText("B");
            jButton60.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton60.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton60.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton60ActionPerformed(evt);
                }
            });

            jButton61.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton61.setText("N");
            jButton61.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton61.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton61.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton61ActionPerformed(evt);
                }
            });

            jButton62.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton62.setText("M");
            jButton62.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton62.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton62.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton62ActionPerformed(evt);
                }
            });

            jButton63.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton63.setText(",");
            jButton63.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton63.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton63.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton63ActionPerformed(evt);
                }
            });

            jButton64.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton64.setText(".");
            jButton64.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton64.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton64.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton64ActionPerformed(evt);
                }
            });

            jButton65.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton65.setText("/");
            jButton65.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton65.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton65.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton65ActionPerformed(evt);
                }
            });

            jButton66.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton66.setText("SHIFT");
            jButton66.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton66.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton66.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton66ActionPerformed(evt);
                }
            });

            jButton67.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton67.setText("Ctrl");
            jButton67.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton67.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton67.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton67ActionPerformed(evt);
                }
            });

            jButton68.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton68.setText("WIN");
            jButton68.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton68.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton68.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton68ActionPerformed(evt);
                }
            });

            jButton69.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton69.setText("Alt");
            jButton69.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton69.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton69.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton69ActionPerformed(evt);
                }
            });

            jButton70.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton70.setText("Ctrl");
            jButton70.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton70.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton70.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton70ActionPerformed(evt);
                }
            });

            jButton71.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton71.setText("MENU");
            jButton71.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton71.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton71.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton71ActionPerformed(evt);
                }
            });

            jButton72.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton72.setText("WIN");
            jButton72.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton72.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton72.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton72ActionPerformed(evt);
                }
            });

            jButton73.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton73.setText("Alt");
            jButton73.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton73.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton73.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton73ActionPerformed(evt);
                }
            });

            jButton74.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton74.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton74.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton74.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton74ActionPerformed(evt);
                }
            });

            javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
            jPanel2.setLayout(jPanel2Layout);
            jPanel2Layout.setHorizontalGroup(
                jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addComponent(tyldaButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(dig1Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(dig2Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(dig3Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(dig4Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(dig5Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(dig6Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(dig7Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(dig8Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(dig9Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(dig0Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(minusButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(plusButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(backspaceButton, javax.swing.GroupLayout.DEFAULT_SIZE, 82, Short.MAX_VALUE))
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addComponent(tabButton, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(qButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(wButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(eButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(rButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(tButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(yButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(uButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(iButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(oButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(pButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(squareBracketLeftButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(squareBracketRightButton40, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(backslashButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addComponent(jButton42, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton43, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton44, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton45, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton46, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton47, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton48, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton49, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton50, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton51, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton52, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton53, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton54, javax.swing.GroupLayout.DEFAULT_SIZE, 88, Short.MAX_VALUE))
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addComponent(jButton55, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton56, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton57, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton58, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton59, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton60, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton61, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton62, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton63, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton64, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton65, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton66, javax.swing.GroupLayout.DEFAULT_SIZE, 111, Short.MAX_VALUE))
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addComponent(jButton67, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton68, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton69, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton74, javax.swing.GroupLayout.DEFAULT_SIZE, 214, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton73, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton72, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton71, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton70, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE))
            );
            jPanel2Layout.setVerticalGroup(
                jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(tyldaButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(dig1Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(dig2Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(dig3Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(dig4Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(dig5Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(dig6Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(dig7Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(dig8Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(dig9Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(dig0Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(minusButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(plusButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(backspaceButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(tabButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(qButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(wButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(eButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(rButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(tButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(yButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(uButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(iButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(oButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(pButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(squareBracketLeftButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(squareBracketRightButton40, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(backslashButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton42, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton43, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton44, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton45, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton46, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton47, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton48, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton49, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton50, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton51, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton52, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton53, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton54, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton55, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton56, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton57, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton58, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton59, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton60, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton61, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton62, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton63, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton64, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton65, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton66, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButton67, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButton68, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButton69, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButton74, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButton70, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButton71, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButton72, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButton73, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))))
            );

            jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());

            f1Button.setFont(new java.awt.Font("Tahoma", 0, 10));
            f1Button.setText("F1");
            f1Button.setMargin(new java.awt.Insets(0, 0, 0, 0));
            f1Button.setPreferredSize(new java.awt.Dimension(64, 64));
            f1Button.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    f1ButtonActionPerformed(evt);
                }
            });

            f2Button.setFont(new java.awt.Font("Tahoma", 0, 10));
            f2Button.setText("F2");
            f2Button.setMargin(new java.awt.Insets(0, 0, 0, 0));
            f2Button.setPreferredSize(new java.awt.Dimension(64, 64));
            f2Button.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    f2ButtonActionPerformed(evt);
                }
            });

            f3Button.setFont(new java.awt.Font("Tahoma", 0, 10));
            f3Button.setText("F3");
            f3Button.setMargin(new java.awt.Insets(0, 0, 0, 0));
            f3Button.setPreferredSize(new java.awt.Dimension(64, 64));
            f3Button.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    f3ButtonActionPerformed(evt);
                }
            });

            f4Button.setFont(new java.awt.Font("Tahoma", 0, 10));
            f4Button.setText("F4");
            f4Button.setMargin(new java.awt.Insets(0, 0, 0, 0));
            f4Button.setPreferredSize(new java.awt.Dimension(64, 64));
            f4Button.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    f4ButtonActionPerformed(evt);
                }
            });

            f5Button.setFont(new java.awt.Font("Tahoma", 0, 10));
            f5Button.setText("F5");
            f5Button.setMargin(new java.awt.Insets(0, 0, 0, 0));
            f5Button.setPreferredSize(new java.awt.Dimension(64, 64));
            f5Button.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    f5ButtonActionPerformed(evt);
                }
            });

            f6Button.setFont(new java.awt.Font("Tahoma", 0, 10));
            f6Button.setText("F6");
            f6Button.setMargin(new java.awt.Insets(0, 0, 0, 0));
            f6Button.setPreferredSize(new java.awt.Dimension(64, 64));
            f6Button.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    f6ButtonActionPerformed(evt);
                }
            });

            f7Button.setFont(new java.awt.Font("Tahoma", 0, 10));
            f7Button.setText("F7");
            f7Button.setMargin(new java.awt.Insets(0, 0, 0, 0));
            f7Button.setPreferredSize(new java.awt.Dimension(64, 64));
            f7Button.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    f7ButtonActionPerformed(evt);
                }
            });

            f8Button.setFont(new java.awt.Font("Tahoma", 0, 10));
            f8Button.setText("F8");
            f8Button.setMargin(new java.awt.Insets(0, 0, 0, 0));
            f8Button.setPreferredSize(new java.awt.Dimension(64, 64));
            f8Button.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    f8ButtonActionPerformed(evt);
                }
            });

            f9Button.setFont(new java.awt.Font("Tahoma", 0, 10));
            f9Button.setText("F9");
            f9Button.setMargin(new java.awt.Insets(0, 0, 0, 0));
            f9Button.setPreferredSize(new java.awt.Dimension(64, 64));
            f9Button.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    f9ButtonActionPerformed(evt);
                }
            });

            f10Button.setFont(new java.awt.Font("Tahoma", 0, 10));
            f10Button.setText("F10");
            f10Button.setMargin(new java.awt.Insets(0, 0, 0, 0));
            f10Button.setPreferredSize(new java.awt.Dimension(64, 64));
            f10Button.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    f10ButtonActionPerformed(evt);
                }
            });

            f11Button.setFont(new java.awt.Font("Tahoma", 0, 10));
            f11Button.setText("F11");
            f11Button.setMargin(new java.awt.Insets(0, 0, 0, 0));
            f11Button.setPreferredSize(new java.awt.Dimension(64, 64));
            f11Button.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    f11ButtonActionPerformed(evt);
                }
            });

            f12Button.setFont(new java.awt.Font("Tahoma", 0, 10));
            f12Button.setText("F12");
            f12Button.setMargin(new java.awt.Insets(0, 0, 0, 0));
            f12Button.setPreferredSize(new java.awt.Dimension(64, 64));
            f12Button.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    f12ButtonActionPerformed(evt);
                }
            });

            escButton.setFont(new java.awt.Font("Tahoma", 0, 10));
            escButton.setText("ESC");
            escButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
            escButton.setPreferredSize(new java.awt.Dimension(64, 64));
            escButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    escButtonActionPerformed(evt);
                }
            });

            javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
            jPanel3.setLayout(jPanel3Layout);
            jPanel3Layout.setHorizontalGroup(
                jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel3Layout.createSequentialGroup()
                    .addComponent(escButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(45, 45, 45)
                    .addComponent(f1Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(f2Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(f3Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(f4Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 31, Short.MAX_VALUE)
                    .addComponent(f5Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(f6Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(f7Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(f8Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(30, 30, 30)
                    .addComponent(f9Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(f10Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(f11Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(f12Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
            );
            jPanel3Layout.setVerticalGroup(
                jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(escButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(f9Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(f10Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(f11Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(f12Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(f1Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(f2Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(f3Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(f4Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(f5Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(f6Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(f7Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(f8Button, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
            );

            jPanel4.setBorder(javax.swing.BorderFactory.createEtchedBorder());

            printScreenButton.setFont(new java.awt.Font("Tahoma", 0, 10));
            printScreenButton.setText("PScr");
            printScreenButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
            printScreenButton.setPreferredSize(new java.awt.Dimension(64, 64));

            scrollLockButton.setFont(new java.awt.Font("Tahoma", 0, 10));
            scrollLockButton.setText("ScrLck");
            scrollLockButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
            scrollLockButton.setPreferredSize(new java.awt.Dimension(64, 64));
            scrollLockButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    scrollLockButtonActionPerformed(evt);
                }
            });

            pauseButton.setFont(new java.awt.Font("Tahoma", 0, 10));
            pauseButton.setText("Pause");
            pauseButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
            pauseButton.setPreferredSize(new java.awt.Dimension(64, 64));
            pauseButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    pauseButtonActionPerformed(evt);
                }
            });

            jButton78.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton78.setText("Insert");
            jButton78.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton78.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton78.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton78ActionPerformed(evt);
                }
            });

            jButton79.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton79.setText("Home");
            jButton79.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton79.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton79.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton79ActionPerformed(evt);
                }
            });

            jButton80.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton80.setText("PgUp");
            jButton80.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton80.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton80.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton80ActionPerformed(evt);
                }
            });

            jButton81.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton81.setText("Delete");
            jButton81.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton81.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton81.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton81ActionPerformed(evt);
                }
            });

            jButton82.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton82.setText("End");
            jButton82.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton82.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton82.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton82ActionPerformed(evt);
                }
            });

            jButton83.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton83.setText("PgDn");
            jButton83.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton83.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton83.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton83ActionPerformed(evt);
                }
            });

            javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
            jPanel4.setLayout(jPanel4Layout);
            jPanel4Layout.setHorizontalGroup(
                jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel4Layout.createSequentialGroup()
                    .addComponent(printScreenButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(scrollLockButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(pauseButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel4Layout.createSequentialGroup()
                    .addComponent(jButton78, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton79, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton80, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel4Layout.createSequentialGroup()
                    .addComponent(jButton81, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton82, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton83, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
            );
            jPanel4Layout.setVerticalGroup(
                jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel4Layout.createSequentialGroup()
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(printScreenButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(scrollLockButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(pauseButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton78, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton79, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton80, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton81, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton82, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton83, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)))
            );

            jPanel5.setBorder(javax.swing.BorderFactory.createEtchedBorder());

            leftButton.setFont(new java.awt.Font("Tahoma", 0, 10));
            leftButton.setText("Left");
            leftButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
            leftButton.setPreferredSize(new java.awt.Dimension(64, 64));
            leftButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    leftButtonActionPerformed(evt);
                }
            });

            downButton.setFont(new java.awt.Font("Tahoma", 0, 10));
            downButton.setText("Down");
            downButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
            downButton.setPreferredSize(new java.awt.Dimension(64, 64));
            downButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    downButtonActionPerformed(evt);
                }
            });

            rightButton.setFont(new java.awt.Font("Tahoma", 0, 10));
            rightButton.setText("Right");
            rightButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
            rightButton.setPreferredSize(new java.awt.Dimension(64, 64));
            rightButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    rightButtonActionPerformed(evt);
                }
            });

            upButton.setFont(new java.awt.Font("Tahoma", 0, 10));
            upButton.setText("Up");
            upButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
            upButton.setPreferredSize(new java.awt.Dimension(64, 64));
            upButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    upButtonActionPerformed(evt);
                }
            });

            javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
            jPanel5.setLayout(jPanel5Layout);
            jPanel5Layout.setHorizontalGroup(
                jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel5Layout.createSequentialGroup()
                    .addComponent(leftButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(upButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(jPanel5Layout.createSequentialGroup()
                            .addComponent(downButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(rightButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))))
            );
            jPanel5Layout.setVerticalGroup(
                jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                    .addComponent(upButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(leftButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(downButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(rightButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)))
            );

            jPanel6.setBorder(javax.swing.BorderFactory.createEtchedBorder());

            jButton88.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton88.setText("NumLock");
            jButton88.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton88.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton88.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton88ActionPerformed(evt);
                }
            });

            jButton89.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton89.setText("/");
            jButton89.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton89.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton89.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton89ActionPerformed(evt);
                }
            });

            jButton90.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton90.setText("*");
            jButton90.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton90.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton90.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton90ActionPerformed(evt);
                }
            });

            jButton92.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton92.setText("7");
            jButton92.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton92.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton92.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton92ActionPerformed(evt);
                }
            });

            jButton93.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton93.setText("9");
            jButton93.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton93.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton93.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton93ActionPerformed(evt);
                }
            });

            jButton94.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton94.setText("8");
            jButton94.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton94.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton94.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton94ActionPerformed(evt);
                }
            });

            jButton96.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton96.setText("4");
            jButton96.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton96.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton96.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton96ActionPerformed(evt);
                }
            });

            jButton97.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton97.setText("5");
            jButton97.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton97.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton97.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton97ActionPerformed(evt);
                }
            });

            jButton98.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton98.setText("6");
            jButton98.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton98.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton98.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton98ActionPerformed(evt);
                }
            });

            jButton100.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton100.setText("1");
            jButton100.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton100.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton100.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton100ActionPerformed(evt);
                }
            });

            jButton101.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton101.setText("2");
            jButton101.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton101.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton101.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton101ActionPerformed(evt);
                }
            });

            jButton102.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton102.setText("3");
            jButton102.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton102.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton102.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton102ActionPerformed(evt);
                }
            });

            jButton104.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton104.setText("0");
            jButton104.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton104.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton104.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton104ActionPerformed(evt);
                }
            });

            jButton105.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton105.setText("Up");
            jButton105.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton105.setPreferredSize(new java.awt.Dimension(64, 64));

            jButton103.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton103.setText("Del");
            jButton103.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton103.setPreferredSize(new java.awt.Dimension(64, 64));

            jButton95.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton95.setText("+");
            jButton95.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton95.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton95.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton95ActionPerformed(evt);
                }
            });

            jButton99.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton99.setText("-");
            jButton99.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton99.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton99.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton99ActionPerformed(evt);
                }
            });

            jButton106.setFont(new java.awt.Font("Tahoma", 0, 10));
            jButton106.setText("EN");
            jButton106.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
            jButton106.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jButton106.setPreferredSize(new java.awt.Dimension(64, 64));
            jButton106.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton106ActionPerformed(evt);
                }
            });

            javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
            jPanel6.setLayout(jPanel6Layout);
            jPanel6Layout.setHorizontalGroup(
                jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel6Layout.createSequentialGroup()
                    .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel6Layout.createSequentialGroup()
                                .addGap(70, 70, 70)
                                .addComponent(jButton105, javax.swing.GroupLayout.PREFERRED_SIZE, 0, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel6Layout.createSequentialGroup()
                                .addComponent(jButton100, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jButton101, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jButton102, javax.swing.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE))
                            .addGroup(jPanel6Layout.createSequentialGroup()
                                .addComponent(jButton104, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jButton103, javax.swing.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE)))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel6Layout.createSequentialGroup()
                            .addComponent(jButton96, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButton97, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButton98, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel6Layout.createSequentialGroup()
                            .addComponent(jButton88, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButton89, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButton90, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel6Layout.createSequentialGroup()
                            .addComponent(jButton92, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButton94, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButton93, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jButton106, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton95, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton99, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)))
            );
            jPanel6Layout.setVerticalGroup(
                jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel6Layout.createSequentialGroup()
                    .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton88, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton89, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton90, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton99, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel6Layout.createSequentialGroup()
                            .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jButton92, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jButton94, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jButton93, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jButton96, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jButton97, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jButton98, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addComponent(jButton95, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel6Layout.createSequentialGroup()
                            .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jButton100, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jButton101, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jButton102, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jButton104, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jButton103, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButton105, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addComponent(jButton106, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            );

            javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
            jPanel1.setLayout(jPanel1Layout);
            jPanel1Layout.setHorizontalGroup(
                jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel1Layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap())
            );
            jPanel1Layout.setVerticalGroup(
                jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel1Layout.createSequentialGroup()
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                                .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            );

            jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder("Key Actions"));

            keyActionsList.setModel(new javax.swing.AbstractListModel() {
                String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
                public int getSize() { return strings.length; }
                public Object getElementAt(int i) { return strings[i]; }
            });
            jScrollPane1.setViewportView(keyActionsList);

            javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
            jPanel7.setLayout(jPanel7Layout);
            jPanel7Layout.setHorizontalGroup(
                jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 232, Short.MAX_VALUE)
            );
            jPanel7Layout.setVerticalGroup(
                jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 147, Short.MAX_VALUE)
            );

            bindActionButton.setText("◄");
            bindActionButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    bindActionButtonActionPerformed(evt);
                }
            });

            unbindActionButton.setText("►");
            unbindActionButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    unbindActionButtonActionPerformed(evt);
                }
            });

            jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder("Actions"));

            actionsList.setModel(DataModelsFactory.getActionsListModel()
            );
            jScrollPane2.setViewportView(actionsList);

            javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
            jPanel8.setLayout(jPanel8Layout);
            jPanel8Layout.setHorizontalGroup(
                jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 220, Short.MAX_VALUE)
            );
            jPanel8Layout.setVerticalGroup(
                jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 153, Short.MAX_VALUE)
            );

            newActionButton.setText("Mange Actions");
            newActionButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    newActionButtonActionPerformed(evt);
                }
            });

            jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder("Key Info"));

            jLabel1.setText("Key name");

            keyNameTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);

            eventTypeComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Key Pressed", "Key Released" }));
            eventTypeComboBox.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    eventTypeComboBoxActionPerformed(evt);
                }
            });

            jLabel2.setText("Event type");

            javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
            jPanel9.setLayout(jPanel9Layout);
            jPanel9Layout.setHorizontalGroup(
                jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel9Layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jLabel1)
                        .addComponent(jLabel2))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(keyNameTextField)
                        .addComponent(eventTypeComboBox, 0, 124, Short.MAX_VALUE))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            );
            jPanel9Layout.setVerticalGroup(
                jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel9Layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel1)
                        .addComponent(keyNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(eventTypeComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel2))
                    .addContainerGap(90, Short.MAX_VALUE))
            );

            jButton1.setText("Close");
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
                }
            });

            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                            .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(unbindActionButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(bindActionButton, javax.swing.GroupLayout.DEFAULT_SIZE, 46, Short.MAX_VALUE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(newActionButton, javax.swing.GroupLayout.DEFAULT_SIZE, 115, Short.MAX_VALUE)
                                .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 115, Short.MAX_VALUE))))
                    .addContainerGap())
            );
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(layout.createSequentialGroup()
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(layout.createSequentialGroup()
                                    .addComponent(bindActionButton)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(unbindActionButton)
                                    .addGap(66, 66, 66))
                                .addGroup(layout.createSequentialGroup()
                                    .addGap(6, 6, 6)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                        .addComponent(jPanel9, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(jPanel7, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                                .addComponent(jPanel8, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                        .addGroup(layout.createSequentialGroup()
                            .addGap(28, 28, 28)
                            .addComponent(newActionButton, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 103, Short.MAX_VALUE)
                            .addComponent(jButton1)))
                    .addContainerGap())
            );

            pack();
        }// </editor-fold>//GEN-END:initComponents

    public int getEventType()
    {
        if (eventTypeComboBox.getSelectedIndex()==0)
            return KeyEvent.KEY_PRESSED;
        else if (eventTypeComboBox.getSelectedIndex()==1)
            return KeyEvent.KEY_RELEASED;

        return -1;
    }

    private void resetKeyActionsListModel()
    {
        if (scene != null) {
            VKey vKey = scene.getVKeyboard().getKey(actualKeyCode);
            keyActionsList.setModel( new KeyActionsListModel(vKey, getEventType()) );
        }
    }

    private void chooseKey(int keyCode)
    {
        if (scene != null) {
            actualKeyCode = keyCode;

            VKey vKey = scene.getVKeyboard().getKey(keyCode);
            keyNameTextField.setText(""+vKey);

            resetKeyActionsListModel();
        }
    }

    private void newActionButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_newActionButtonActionPerformed
        SA_Dialogs.setVisibleActionsDialog(true);
}//GEN-LAST:event_newActionButtonActionPerformed

    private void formWindowClosed(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosed
        SA_Dialogs.setVisibleKeyboardDialog(false);
    }//GEN-LAST:event_formWindowClosed

    private void qButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_qButtonActionPerformed
        chooseKey(KeyEvent.VK_Q);
    }//GEN-LAST:event_qButtonActionPerformed

    private void wButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_wButtonActionPerformed
        chooseKey(KeyEvent.VK_W);
    }//GEN-LAST:event_wButtonActionPerformed

    private void eButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_eButtonActionPerformed
        chooseKey(KeyEvent.VK_E);
    }//GEN-LAST:event_eButtonActionPerformed

    private void rButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rButtonActionPerformed
        chooseKey(KeyEvent.VK_R);
    }//GEN-LAST:event_rButtonActionPerformed

    private void tButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tButtonActionPerformed
        chooseKey(KeyEvent.VK_T);
    }//GEN-LAST:event_tButtonActionPerformed

    private void yButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_yButtonActionPerformed
        chooseKey(KeyEvent.VK_Y);
    }//GEN-LAST:event_yButtonActionPerformed

    private void bindActionButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bindActionButtonActionPerformed
        VKey vKey = scene.getVKeyboard().getKey(actualKeyCode);
        if (vKey != null)
        {
            int[] actionsIndices = actionsList.getSelectedIndices();
            for(int i=0; i<actionsIndices.length; i++)
                switch( getEventType() )
                {
                    case KeyEvent.KEY_PRESSED :
                        //vKey.getPressActions().add( CC.getAction(actionsIndices[i]) );
                        StaticActions.bindActionToKeyPressActions(vKey,actionsIndices[i]);
                        break;
                    case KeyEvent.KEY_RELEASED :
                        //vKey.getReleaseActions().add( CC.getAction(actionsIndices[i]) );
                        StaticActions.bindActionToKeyReleaseActions(vKey,actionsIndices[i]);
                        break;
                }
            keyActionsList.updateUI();
        }
    }//GEN-LAST:event_bindActionButtonActionPerformed

    private void eventTypeComboBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_eventTypeComboBoxActionPerformed
        resetKeyActionsListModel();
    }//GEN-LAST:event_eventTypeComboBoxActionPerformed

    private void unbindActionButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_unbindActionButtonActionPerformed
        VKey vKey = scene.getVKeyboard().getKey(actualKeyCode);
        if (vKey!=null)
        {
            int[] indices = keyActionsList.getSelectedIndices();
            ArrayList<Action> aList = new ArrayList<Action>(indices.length);

            for(int i=0; i<indices.length; i++)
                switch( getEventType() )
                {
                    case KeyEvent.KEY_PRESSED :
                        aList.add( vKey.getPressActions().get(indices[i]) );
                        break;
                    case KeyEvent.KEY_RELEASED :
                        aList.add( vKey.getReleaseActions().get(indices[i]) );
                        break;
                }

            for(Action a : aList)
                switch( getEventType() )
                {
                    case KeyEvent.KEY_PRESSED :
                        vKey.getPressActions().remove(a);
                        break;
                    case KeyEvent.KEY_RELEASED :
                        vKey.getReleaseActions().remove(a);
                        break;
                }

            keyActionsList.updateUI();
        }
    }//GEN-LAST:event_unbindActionButtonActionPerformed

    private void jButton43ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton43ActionPerformed
        chooseKey(KeyEvent.VK_A);
    }//GEN-LAST:event_jButton43ActionPerformed

    private void jButton44ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton44ActionPerformed
        chooseKey(KeyEvent.VK_S);
    }//GEN-LAST:event_jButton44ActionPerformed

    private void jButton45ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton45ActionPerformed
        chooseKey(KeyEvent.VK_D);
    }//GEN-LAST:event_jButton45ActionPerformed

    private void jButton46ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton46ActionPerformed
        chooseKey(KeyEvent.VK_F);
    }//GEN-LAST:event_jButton46ActionPerformed

    private void jButton47ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton47ActionPerformed
        chooseKey(KeyEvent.VK_G);
    }//GEN-LAST:event_jButton47ActionPerformed

    private void jButton48ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton48ActionPerformed
        chooseKey(KeyEvent.VK_H);
    }//GEN-LAST:event_jButton48ActionPerformed

    private void escButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_escButtonActionPerformed
        chooseKey(KeyEvent.VK_ESCAPE);
    }//GEN-LAST:event_escButtonActionPerformed

    private void f1ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_f1ButtonActionPerformed
        chooseKey(KeyEvent.VK_F1);
    }//GEN-LAST:event_f1ButtonActionPerformed

    private void f2ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_f2ButtonActionPerformed
        chooseKey(KeyEvent.VK_F2);
    }//GEN-LAST:event_f2ButtonActionPerformed

    private void f3ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_f3ButtonActionPerformed
        chooseKey(KeyEvent.VK_F3);
    }//GEN-LAST:event_f3ButtonActionPerformed

    private void f4ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_f4ButtonActionPerformed
        chooseKey(KeyEvent.VK_F4);
    }//GEN-LAST:event_f4ButtonActionPerformed

    private void f5ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_f5ButtonActionPerformed
        chooseKey(KeyEvent.VK_F5);
    }//GEN-LAST:event_f5ButtonActionPerformed

    private void f6ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_f6ButtonActionPerformed
        chooseKey(KeyEvent.VK_F6);
    }//GEN-LAST:event_f6ButtonActionPerformed

    private void f7ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_f7ButtonActionPerformed
        chooseKey(KeyEvent.VK_F7);
    }//GEN-LAST:event_f7ButtonActionPerformed

    private void f8ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_f8ButtonActionPerformed
        chooseKey(KeyEvent.VK_F8);
    }//GEN-LAST:event_f8ButtonActionPerformed

    private void f9ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_f9ButtonActionPerformed
        chooseKey(KeyEvent.VK_F9);
    }//GEN-LAST:event_f9ButtonActionPerformed

    private void f10ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_f10ButtonActionPerformed
        chooseKey(KeyEvent.VK_F10);
    }//GEN-LAST:event_f10ButtonActionPerformed

    private void f11ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_f11ButtonActionPerformed
        chooseKey(KeyEvent.VK_F11);
    }//GEN-LAST:event_f11ButtonActionPerformed

    private void f12ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_f12ButtonActionPerformed
        chooseKey(KeyEvent.VK_F12);
    }//GEN-LAST:event_f12ButtonActionPerformed

    private void scrollLockButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_scrollLockButtonActionPerformed
        chooseKey(KeyEvent.VK_SCROLL_LOCK);
    }//GEN-LAST:event_scrollLockButtonActionPerformed

    private void pauseButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pauseButtonActionPerformed
        chooseKey(KeyEvent.VK_PAUSE);
    }//GEN-LAST:event_pauseButtonActionPerformed

    private void tyldaButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tyldaButtonActionPerformed
        chooseKey(KeyEvent.VK_BACK_QUOTE);
    }//GEN-LAST:event_tyldaButtonActionPerformed

    private void dig1ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dig1ButtonActionPerformed
        chooseKey(KeyEvent.VK_1);
    }//GEN-LAST:event_dig1ButtonActionPerformed

    private void dig2ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dig2ButtonActionPerformed
        chooseKey(KeyEvent.VK_2);
    }//GEN-LAST:event_dig2ButtonActionPerformed

    private void dig3ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dig3ButtonActionPerformed
        chooseKey(KeyEvent.VK_3);
    }//GEN-LAST:event_dig3ButtonActionPerformed

    private void dig4ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dig4ButtonActionPerformed
        chooseKey(KeyEvent.VK_4);
    }//GEN-LAST:event_dig4ButtonActionPerformed

    private void dig5ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dig5ButtonActionPerformed
        chooseKey(KeyEvent.VK_5);
    }//GEN-LAST:event_dig5ButtonActionPerformed

    private void dig6ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dig6ButtonActionPerformed
        chooseKey(KeyEvent.VK_6);
    }//GEN-LAST:event_dig6ButtonActionPerformed

    private void dig7ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dig7ButtonActionPerformed
        chooseKey(KeyEvent.VK_7);
    }//GEN-LAST:event_dig7ButtonActionPerformed

    private void dig8ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dig8ButtonActionPerformed
        chooseKey(KeyEvent.VK_8);
    }//GEN-LAST:event_dig8ButtonActionPerformed

    private void dig9ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dig9ButtonActionPerformed
        chooseKey(KeyEvent.VK_9);
    }//GEN-LAST:event_dig9ButtonActionPerformed

    private void dig0ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dig0ButtonActionPerformed
        chooseKey(KeyEvent.VK_0);
    }//GEN-LAST:event_dig0ButtonActionPerformed

    private void minusButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_minusButtonActionPerformed
        chooseKey(KeyEvent.VK_MINUS);
    }//GEN-LAST:event_minusButtonActionPerformed

    private void plusButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_plusButtonActionPerformed
        chooseKey(KeyEvent.VK_EQUALS);
    }//GEN-LAST:event_plusButtonActionPerformed

    private void backspaceButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_backspaceButtonActionPerformed
        chooseKey(KeyEvent.VK_BACK_SPACE);
    }//GEN-LAST:event_backspaceButtonActionPerformed

    private void uButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_uButtonActionPerformed
        chooseKey(KeyEvent.VK_U);
    }//GEN-LAST:event_uButtonActionPerformed

    private void iButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_iButtonActionPerformed
        chooseKey(KeyEvent.VK_I);
    }//GEN-LAST:event_iButtonActionPerformed

    private void oButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_oButtonActionPerformed
        chooseKey(KeyEvent.VK_O);
    }//GEN-LAST:event_oButtonActionPerformed

    private void pButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pButtonActionPerformed
        chooseKey(KeyEvent.VK_P);
    }//GEN-LAST:event_pButtonActionPerformed

    private void squareBracketLeftButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_squareBracketLeftButtonActionPerformed
        chooseKey(KeyEvent.VK_OPEN_BRACKET);
    }//GEN-LAST:event_squareBracketLeftButtonActionPerformed

    private void squareBracketRightButton40ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_squareBracketRightButton40ActionPerformed
        chooseKey(KeyEvent.VK_CLOSE_BRACKET);
    }//GEN-LAST:event_squareBracketRightButton40ActionPerformed

    private void backslashButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_backslashButtonActionPerformed
        chooseKey(KeyEvent.VK_BACK_SLASH);
    }//GEN-LAST:event_backslashButtonActionPerformed

    private void jButton42ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton42ActionPerformed
        chooseKey(KeyEvent.VK_CAPS_LOCK);
    }//GEN-LAST:event_jButton42ActionPerformed

    private void jButton49ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton49ActionPerformed
        chooseKey(KeyEvent.VK_J);
    }//GEN-LAST:event_jButton49ActionPerformed

    private void jButton50ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton50ActionPerformed
        chooseKey(KeyEvent.VK_K);
    }//GEN-LAST:event_jButton50ActionPerformed

    private void jButton51ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton51ActionPerformed
        chooseKey(KeyEvent.VK_L);
    }//GEN-LAST:event_jButton51ActionPerformed

    private void jButton52ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton52ActionPerformed
        chooseKey(KeyEvent.VK_SEMICOLON);
    }//GEN-LAST:event_jButton52ActionPerformed

    private void jButton53ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton53ActionPerformed
        chooseKey(KeyEvent.VK_QUOTE);
    }//GEN-LAST:event_jButton53ActionPerformed

    private void jButton54ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton54ActionPerformed
        chooseKey(KeyEvent.VK_ENTER);
    }//GEN-LAST:event_jButton54ActionPerformed

    private void jButton55ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton55ActionPerformed
        chooseKey(KeyEvent.VK_SHIFT);
    }//GEN-LAST:event_jButton55ActionPerformed

    private void jButton56ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton56ActionPerformed
        chooseKey(KeyEvent.VK_Z);
    }//GEN-LAST:event_jButton56ActionPerformed

    private void jButton57ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton57ActionPerformed
        chooseKey(KeyEvent.VK_X);
    }//GEN-LAST:event_jButton57ActionPerformed

    private void jButton58ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton58ActionPerformed
        chooseKey(KeyEvent.VK_C);
    }//GEN-LAST:event_jButton58ActionPerformed

    private void jButton59ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton59ActionPerformed
        chooseKey(KeyEvent.VK_V);
    }//GEN-LAST:event_jButton59ActionPerformed

    private void jButton60ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton60ActionPerformed
        chooseKey(KeyEvent.VK_B);
    }//GEN-LAST:event_jButton60ActionPerformed

    private void jButton61ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton61ActionPerformed
        chooseKey(KeyEvent.VK_N);
    }//GEN-LAST:event_jButton61ActionPerformed

    private void jButton62ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton62ActionPerformed
        chooseKey(KeyEvent.VK_M);
    }//GEN-LAST:event_jButton62ActionPerformed

    private void jButton63ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton63ActionPerformed
        chooseKey(KeyEvent.VK_COMMA);
    }//GEN-LAST:event_jButton63ActionPerformed

    private void jButton64ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton64ActionPerformed
        chooseKey(KeyEvent.VK_PERIOD);
    }//GEN-LAST:event_jButton64ActionPerformed

    private void jButton65ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton65ActionPerformed
        chooseKey(KeyEvent.VK_SLASH);
    }//GEN-LAST:event_jButton65ActionPerformed

    private void jButton66ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton66ActionPerformed
        chooseKey(KeyEvent.VK_SHIFT);
    }//GEN-LAST:event_jButton66ActionPerformed

    private void jButton67ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton67ActionPerformed
        chooseKey(KeyEvent.VK_CONTROL);
    }//GEN-LAST:event_jButton67ActionPerformed

    private void jButton68ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton68ActionPerformed
        chooseKey(KeyEvent.VK_WINDOWS);
    }//GEN-LAST:event_jButton68ActionPerformed

    private void jButton69ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton69ActionPerformed
        chooseKey(KeyEvent.VK_ALT);
    }//GEN-LAST:event_jButton69ActionPerformed

    private void jButton74ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton74ActionPerformed
        chooseKey(KeyEvent.VK_SPACE);
    }//GEN-LAST:event_jButton74ActionPerformed

    private void jButton73ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton73ActionPerformed
        chooseKey(KeyEvent.VK_ALT);
    }//GEN-LAST:event_jButton73ActionPerformed

    private void jButton72ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton72ActionPerformed
        chooseKey(KeyEvent.VK_WINDOWS);
    }//GEN-LAST:event_jButton72ActionPerformed

    private void jButton71ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton71ActionPerformed
        chooseKey(KeyEvent.VK_CONTEXT_MENU);
    }//GEN-LAST:event_jButton71ActionPerformed

    private void jButton70ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton70ActionPerformed
        chooseKey(KeyEvent.VK_CONTROL);
    }//GEN-LAST:event_jButton70ActionPerformed

    private void upButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_upButtonActionPerformed
        chooseKey(KeyEvent.VK_UP);
    }//GEN-LAST:event_upButtonActionPerformed

    private void downButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_downButtonActionPerformed
        chooseKey(KeyEvent.VK_DOWN);
    }//GEN-LAST:event_downButtonActionPerformed

    private void leftButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_leftButtonActionPerformed
        chooseKey(KeyEvent.VK_LEFT);
    }//GEN-LAST:event_leftButtonActionPerformed

    private void rightButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rightButtonActionPerformed
        chooseKey(KeyEvent.VK_RIGHT);
    }//GEN-LAST:event_rightButtonActionPerformed

    private void jButton78ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton78ActionPerformed
        chooseKey(KeyEvent.VK_INSERT);
    }//GEN-LAST:event_jButton78ActionPerformed

    private void jButton79ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton79ActionPerformed
        chooseKey(KeyEvent.VK_HOME);
    }//GEN-LAST:event_jButton79ActionPerformed

    private void jButton80ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton80ActionPerformed
        chooseKey(KeyEvent.VK_PAGE_UP);
    }//GEN-LAST:event_jButton80ActionPerformed

    private void jButton83ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton83ActionPerformed
        chooseKey(KeyEvent.VK_PAGE_DOWN);
    }//GEN-LAST:event_jButton83ActionPerformed

    private void jButton81ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton81ActionPerformed
        chooseKey(KeyEvent.VK_DELETE);
    }//GEN-LAST:event_jButton81ActionPerformed

    private void jButton82ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton82ActionPerformed
        chooseKey(KeyEvent.VK_END);
    }//GEN-LAST:event_jButton82ActionPerformed

    private void jButton88ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton88ActionPerformed
        chooseKey(KeyEvent.VK_NUM_LOCK);
    }//GEN-LAST:event_jButton88ActionPerformed

    private void jButton89ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton89ActionPerformed
        //NUMPAD SLASH
        chooseKey(111);
    }//GEN-LAST:event_jButton89ActionPerformed

    private void jButton90ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton90ActionPerformed
        //NUMPAD STAR
        chooseKey(106);
    }//GEN-LAST:event_jButton90ActionPerformed

    private void jButton99ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton99ActionPerformed
        //NUMPAD MINUS
        chooseKey(109);
    }//GEN-LAST:event_jButton99ActionPerformed

    private void jButton95ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton95ActionPerformed
        //NUMPAD PLUS
        chooseKey(107);
    }//GEN-LAST:event_jButton95ActionPerformed

    private void jButton92ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton92ActionPerformed
        chooseKey(KeyEvent.VK_NUMPAD7);
    }//GEN-LAST:event_jButton92ActionPerformed

    private void jButton94ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton94ActionPerformed
        chooseKey(KeyEvent.VK_NUMPAD8);
    }//GEN-LAST:event_jButton94ActionPerformed

    private void jButton93ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton93ActionPerformed
        chooseKey(KeyEvent.VK_NUMPAD9);
    }//GEN-LAST:event_jButton93ActionPerformed

    private void jButton96ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton96ActionPerformed
        chooseKey(KeyEvent.VK_NUMPAD4);
    }//GEN-LAST:event_jButton96ActionPerformed

    private void jButton97ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton97ActionPerformed
        chooseKey(KeyEvent.VK_NUMPAD5);
    }//GEN-LAST:event_jButton97ActionPerformed

    private void jButton98ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton98ActionPerformed
        chooseKey(KeyEvent.VK_NUMPAD6);
    }//GEN-LAST:event_jButton98ActionPerformed

    private void jButton100ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton100ActionPerformed
        chooseKey(KeyEvent.VK_NUMPAD1);
    }//GEN-LAST:event_jButton100ActionPerformed

    private void jButton101ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton101ActionPerformed
        chooseKey(KeyEvent.VK_NUMPAD2);
    }//GEN-LAST:event_jButton101ActionPerformed

    private void jButton102ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton102ActionPerformed
        chooseKey(KeyEvent.VK_NUMPAD3);
    }//GEN-LAST:event_jButton102ActionPerformed

    private void jButton104ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton104ActionPerformed
        chooseKey(KeyEvent.VK_NUMPAD0);
    }//GEN-LAST:event_jButton104ActionPerformed

    private void jButton106ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton106ActionPerformed
        chooseKey(KeyEvent.VK_ENTER);
    }//GEN-LAST:event_jButton106ActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        SA_Dialogs.setVisibleKeyboardDialog(false);
    }//GEN-LAST:event_jButton1ActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JList actionsList;
    private javax.swing.JButton backslashButton;
    private javax.swing.JButton backspaceButton;
    private javax.swing.JButton bindActionButton;
    private javax.swing.JButton dig0Button;
    private javax.swing.JButton dig1Button;
    private javax.swing.JButton dig2Button;
    private javax.swing.JButton dig3Button;
    private javax.swing.JButton dig4Button;
    private javax.swing.JButton dig5Button;
    private javax.swing.JButton dig6Button;
    private javax.swing.JButton dig7Button;
    private javax.swing.JButton dig8Button;
    private javax.swing.JButton dig9Button;
    private javax.swing.JButton downButton;
    private javax.swing.JButton eButton;
    private javax.swing.JButton escButton;
    private javax.swing.JComboBox eventTypeComboBox;
    private javax.swing.JButton f10Button;
    private javax.swing.JButton f11Button;
    private javax.swing.JButton f12Button;
    private javax.swing.JButton f1Button;
    private javax.swing.JButton f2Button;
    private javax.swing.JButton f3Button;
    private javax.swing.JButton f4Button;
    private javax.swing.JButton f5Button;
    private javax.swing.JButton f6Button;
    private javax.swing.JButton f7Button;
    private javax.swing.JButton f8Button;
    private javax.swing.JButton f9Button;
    private javax.swing.JButton iButton;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton100;
    private javax.swing.JButton jButton101;
    private javax.swing.JButton jButton102;
    private javax.swing.JButton jButton103;
    private javax.swing.JButton jButton104;
    private javax.swing.JButton jButton105;
    private javax.swing.JButton jButton106;
    private javax.swing.JButton jButton42;
    private javax.swing.JButton jButton43;
    private javax.swing.JButton jButton44;
    private javax.swing.JButton jButton45;
    private javax.swing.JButton jButton46;
    private javax.swing.JButton jButton47;
    private javax.swing.JButton jButton48;
    private javax.swing.JButton jButton49;
    private javax.swing.JButton jButton50;
    private javax.swing.JButton jButton51;
    private javax.swing.JButton jButton52;
    private javax.swing.JButton jButton53;
    private javax.swing.JButton jButton54;
    private javax.swing.JButton jButton55;
    private javax.swing.JButton jButton56;
    private javax.swing.JButton jButton57;
    private javax.swing.JButton jButton58;
    private javax.swing.JButton jButton59;
    private javax.swing.JButton jButton60;
    private javax.swing.JButton jButton61;
    private javax.swing.JButton jButton62;
    private javax.swing.JButton jButton63;
    private javax.swing.JButton jButton64;
    private javax.swing.JButton jButton65;
    private javax.swing.JButton jButton66;
    private javax.swing.JButton jButton67;
    private javax.swing.JButton jButton68;
    private javax.swing.JButton jButton69;
    private javax.swing.JButton jButton70;
    private javax.swing.JButton jButton71;
    private javax.swing.JButton jButton72;
    private javax.swing.JButton jButton73;
    private javax.swing.JButton jButton74;
    private javax.swing.JButton jButton78;
    private javax.swing.JButton jButton79;
    private javax.swing.JButton jButton80;
    private javax.swing.JButton jButton81;
    private javax.swing.JButton jButton82;
    private javax.swing.JButton jButton83;
    private javax.swing.JButton jButton88;
    private javax.swing.JButton jButton89;
    private javax.swing.JButton jButton90;
    private javax.swing.JButton jButton92;
    private javax.swing.JButton jButton93;
    private javax.swing.JButton jButton94;
    private javax.swing.JButton jButton95;
    private javax.swing.JButton jButton96;
    private javax.swing.JButton jButton97;
    private javax.swing.JButton jButton98;
    private javax.swing.JButton jButton99;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JList keyActionsList;
    private javax.swing.JTextField keyNameTextField;
    private javax.swing.JButton leftButton;
    private javax.swing.JButton minusButton;
    private javax.swing.JButton newActionButton;
    private javax.swing.JButton oButton;
    private javax.swing.JButton pButton;
    private javax.swing.JButton pauseButton;
    private javax.swing.JButton plusButton;
    private javax.swing.JButton printScreenButton;
    private javax.swing.JButton qButton;
    private javax.swing.JButton rButton;
    private javax.swing.JButton rightButton;
    private javax.swing.JButton scrollLockButton;
    private javax.swing.JButton squareBracketLeftButton;
    private javax.swing.JButton squareBracketRightButton40;
    private javax.swing.JButton tButton;
    private javax.swing.JButton tabButton;
    private javax.swing.JButton tyldaButton;
    private javax.swing.JButton uButton;
    private javax.swing.JButton unbindActionButton;
    private javax.swing.JButton upButton;
    private javax.swing.JButton wButton;
    private javax.swing.JButton yButton;
    // End of variables declaration//GEN-END:variables

}
